ioemu: Improve SDL openGL configure-script detection.
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 19 Mar 2008 00:01:25 +0000 (00:01 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 19 Mar 2008 00:01:25 +0000 (00:01 +0000)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/ioemu/configure

index b0a4fb857c42dafd6982e46f013f2be1f8e22813..bf68c1236538ece2e8948afeeca2219b47408c38 100755 (executable)
@@ -546,13 +546,13 @@ fi # -z $sdl
 if test -z "$opengl" && test "$sdl" = "yes"
 then
 cat > $TMPC << EOF
-#include <GL/gl.h>
+#include <SDL_opengl.h>
 #ifndef GL_TEXTURE_RECTANGLE_ARB
 #error "Opengl doesn't support GL_TEXTURE_RECTANGLE_ARB"
 #endif
 int main( void ) { return (int) glGetString(GL_EXTENSIONS); }
 EOF
-if $cc -o $TMPE $TMPC -lGL 2> /dev/null
+if $cc -o $TMPE `$sdl_config --cflags --libs 2> /dev/null` -I/usr/include/GL $TMPC -lXext -lGL 2> /dev/null
 then
 opengl="yes"
 else